package summerbug.hanzi.model;

import android.support.v4.widget.SimpleCursorAdapter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.NotNull;

import org.greenrobot.greendao.annotation.Generated;

import java.util.List;

import summerbug.hanzi.model.dao.StringConverter;

/**
 * Created by 76336 on 2018/5/13.
 */

@Entity
public class HanZiTable {
    @NotNull
    private String zi;
    @NotNull
    private String py;
    @NotNull
    private String pinyin;
    @NotNull
    private String bushou;
    @NotNull
    private String bihua;
    @NotNull
    private String wubi;
    @NotNull
    private String imgurl;
    @NotNull
    private Boolean checked;
    @Convert(columnType = String.class,converter = StringConverter.class)
    private List<String> jianjie;

    @Generated(hash = 339327805)
    public HanZiTable(@NotNull String zi, @NotNull String py,
            @NotNull String pinyin, @NotNull String bushou, @NotNull String bihua,
            @NotNull String wubi, @NotNull String imgurl, @NotNull Boolean checked,
            List<String> jianjie) {
        this.zi = zi;
        this.py = py;
        this.pinyin = pinyin;
        this.bushou = bushou;
        this.bihua = bihua;
        this.wubi = wubi;
        this.imgurl = imgurl;
        this.checked = checked;
        this.jianjie = jianjie;
    }
    @Generated(hash = 1391726709)
    public HanZiTable() {
    }
    public String getZi() {
        return this.zi;
    }
    public void setZi(String zi) {
        this.zi = zi;
    }
    public String getPy() {
        return this.py;
    }
    public void setPy(String py) {
        this.py = py;
    }
    public String getPinyin() {
        return this.pinyin;
    }
    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }
    public String getBushou() {
        return this.bushou;
    }
    public void setBushou(String bushou) {
        this.bushou = bushou;
    }
    public String getBihua() {
        return this.bihua;
    }
    public void setBihua(String bihua) {
        this.bihua = bihua;
    }
    public List<String> getJianjie() {
        return this.jianjie;
    }
    public void setJianjie(List<String> jianjie) {
        this.jianjie = jianjie;
    }
    public String getImgurl() {
        return this.imgurl;
    }
    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }
    public String getWubi() {
        return this.wubi;
    }
    public void setWubi(String wubi) {
        this.wubi = wubi;
    }
    public Boolean getChecked() {
        return this.checked;
    }
    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

}
